import { Component, OnInit } from '@angular/core';

import { NavController } from '@ionic/angular'
import { StorageService } from '../../service/storage.service'
import { CommonService } from "../../service/common.service"

@Component({
  selector: 'app-idcenter',
  templateUrl: './idcenter.page.html',
  styleUrls: ['./idcenter.page.scss'],
})
export class IdcenterPage implements OnInit {

  public userInfo:any;
  public codeyz:any;

  constructor(private nav:NavController,private storage:StorageService,private common:CommonService) { }

  ngOnInit() {
    this.userInfo = this.common.getInfo()
    this.getPersonalInfo()
  }


  // 用户实名认证信息
  getPersonalInfo(){
    var api = '/tbr/getPersonalInfo'
    var params = {
      userId:this.userInfo.userId
    }
    this.common.post(api,params,false).then((res:any)=>{
      // console.log(res)
      if(res.code == 200){
        this.codeyz = res.data
      }
    })
  }

}
